package lab02.test11;

public class Rectangle implements Printx {
    double length;
    double width;
    double area(){
        return length*width;
    }
    double perimeter(){
        return (length+width)*2;
    }

    @Override
    public void printMyWay() {
        System.out.println("the Rectangle's is"+length);
        System.out.println("the Rectangle's is"+width);
        System.out.println("the Rectangle's is"+area());
        System.out.println("the Rectangle's is"+perimeter());
    }
}

